import { defineConfig } from 'wxt'

// See https://wxt.dev/api/config.html
export default defineConfig({
    modules: ['@wxt-dev/module-vue', '@wxt-dev/unocss'],
    unocss: {
        // Exclude unocss from running for the background
        excludeEntrypoints: ['background'],
        configOrPath: {
            theme: {
                colors: {
                    primary: '#3b82f6',
                    success: '#22c55e',
                    warning: '#eab308',
                    error: '#ef4444',
                    info: '#0ea5e9'
                }
            }
        }
    },
    imports: {
        dirs: ['src/**']
    },
    manifest: {
        web_accessible_resources: [
            {
                resources: ['inject.css'],
                matches: ['<all_urls>']
            }
        ]
    }
})
